package com.pay.model.interface_parameter;

import com.pay.utils.validate.vali_annotation.BaseValidate;
import com.pay.utils.validate.vali_annotation.DoubleIllegal;
import com.pay.utils.validate.vali_annotation.RequireField;


/**
 * 支付宝退款
 *
 * @author MENG
 * @version 2019/2/21
 * @see
 */
public class AliPayRebateParam extends BaseValidate
{

    /**
     * 支付宝分配给开发者的应用ID
     */
    @RequireField
    private String appId;

    /**
     * 支付宝 开发者应用的私钥
     */
    @RequireField
    private String privateKey;

    /**
     * 支付宝的公钥（非开发者应用的公钥）
     */
//    @RequireField
//    private String publicKey;

//    /**
//     * 支付宝交易号
//     */
//    private String tradeNo;

    /**
     * 订单号 唯一（应用程序中）
     */
    @RequireField
    private String orderNo;

    /**
     * 退款金额（应用程序中）
     */
    @RequireField
    @DoubleIllegal
    private String refundAmount;

    /**
     * 退款原因
     */
    private String refundReason;

    /**
     * 总订单金额（应用程序中）
     */
    @RequireField
    @DoubleIllegal
    private String totalAmount;

    /**
     * 子订单号
     */
    @RequireField
    @DoubleIllegal
    private String sunOrderCode;

    public String getAppId()
    {
        return appId;
    }

    public void setAppId(String appId)
    {
        this.appId = appId;
    }

    public String getPrivateKey()
    {
        return privateKey;
    }

    public void setPrivateKey(String privateKey)
    {
        this.privateKey = privateKey;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getRefundAmount()
    {
        return refundAmount;
    }

    public void setRefundAmount(String refundAmount)
    {
        this.refundAmount = refundAmount;
    }

    public String getRefundReason()
    {
        return refundReason;
    }

    public void setRefundReason(String refundReason)
    {
        this.refundReason = refundReason;
    }

    public String getTotalAmount()
    {
        return totalAmount;
    }

    public void setTotalAmount(String totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public String getSunOrderCode()
    {
        return sunOrderCode;
    }

    public void setSunOrderCode(String sunOrderCode)
    {
        this.sunOrderCode = sunOrderCode;
    }
}
